import request from '@/utils/request'

// 退回操作
export function rejectOperate(data) {
  return request({
    url: '/personOperateController/rejectOperate',
    method: 'post',
    data
  })
}

// 审核操作
export function personApproved(data) {
  return request({
    url: '/personOperateController/personApproved',
    method: 'post',
    data
  })
}

export function rejectPersonApproved(data) {
  return request({
    url: '/personOperateController/rejectPersonApproved',
    method: 'post',
    data
  })
}

export function revokeVerify(data) {
  return request({
    url: '/personOperateController/revokeVerify',
    method: 'post',
    data
  })
}

export function queryOnePersonSalary(personId) {
  return request({
    url: '/agencySalaryController/queryOnePersonSalary',
    method: 'get',
    params: {
      personId
    }
  })
}

export function getPersonChangeList(query) {
  return request({
    url: '/personOperateController/getPersonChangeList',
    method: 'get',
    params: query
  })
}
